const db = require('../common/Db');
const game_config = require('../config/game_config');
const log = require('../utils/log');
const util = require('util')

class gameDb extends db{
    static getInstance(){
        if(!hallDb.instance){
            hallDb.instance = new hallDb();
            return hallDb.instance;
        }else{
            return hallDb.instance;
        }
    }

    constructor(){
        super();
        log.info('======loginDb 链接数据库=========')
        this.connectSql(game_config.center_database);
    }


}
global.gameSerMgr.gameDb = gameDb.getInstance();
module.exports = gameDb;